<?php
    $category_name = ($this->category->category_content_name)?$this->category->category_content_name:$this->category->category_admin_name;
    $this->headTitle($category_name .' @ kinhdoanhdientu.vn');

    $this->headScript()
        ->appendFile($this->APP_STATIC_SERVER.'/js/jquery.cycle/jquery.cycle.all.min.js');
        ;
?>
<style>
    .col_50l{
        float:left;
        width:48%;
    }
    .col_50r{
        float:right;
        width:48%;
    }
    .subrow{
        padding-bottom:10px;
        display:table;
        width:100%;
    }
    .col_70l{
        float:left;
        width:69.2%;
    }
    .col_30r{
        float:right;
        width:30%;
    }
    .col_30l{
        float:left;
        width:29%;
    }
    .col_70r{
        float:right;
        width:70%;
    }
    .webwidget_vertical_menu li{
        margin-left:0px;
    }
    .caption_box{
        margin-bottom:5px; background:#EFEDED none repeat;
    }
    .caption_box span{
        padding:8px;
        text-transform:uppercase;
    }
    .box_33l{
        float:left;
        width:33.3%;
        background:#EFEDED none repeat;
    }
    .subbox_33l{
        background:#FFFFFF;
        margin:5px 0px 10px 5px;
        padding:5px
    }
    #ad_nav { position:absolute; top:195px; left:347px; width:120px; text-align:right; z-index:1000;}
    #ad_nav a { border: 1px solid #ccc; background: #fc0; text-decoration: none; margin: 0 3px; padding: 3px 5px;  }
    #ad_nav a.activeSlide { background: #ea0 }
    #ad_nav a:focus { outline: none; }
</style>
<?php
    $skin_url = $this->APP_STATIC_SERVER . '/skins/'. $this->APP_TEMPLATE . '/'. $this->APP_SKIN;
?>
<div class="grid_12 pb10">
    <!--Search form-->
    <?php echo $this->widget('shop','searchform',array()); ?>
    <!--End search form-->
</div>
<div class="grid_12">
    <div class="col_70l">
        <div class="subcolumns pb10">
            <div class="col_30l">
               <!--Dropdown menu-->
               <?php echo $this->widget('shop','menu',array()); ?>

            </div>
            <div class="col_70r" style="position:relative;">
                <!--<div>
                    <img width="465" height="215" src="http://localhost/hoalan/images/advertise/products/0_sanpham2.jpg" />
                </div>-->
                <div id="advertise">
                    <?php foreach($this->arrImage as $key=>$image):?>
                        <?php if($image):?>
                        <div style="width:465px; height:215px; overflow:hidden;">
                            <a href="<?php echo $this->arrLink[$key];?>"><img src="<?php echo $image;?>" width="465" height="215" /></a>
                        </div>
                        <?php endif;?>
                    <?php endforeach;?>
                </div>
            </div>
        </div>

        <div class="subcolumns ">
            <!--Advertise box-->
            <?php echo $this->widget('shop','advertise',array()); ?>

            <!--Latest box-->
            <?php echo $this->widget('shop','latest',array()); ?>

            <!--End box guide-->
            <div class="subcolumns">
                <div class="box_33l">
                    <div class="caption_box icon_title">
                        <span>Lợi ích của bạn</span>
                    </div>
                    <div class="subbox_33l">
                        <div>
                            Whether you're new to eBay or a veteran user, we have just the right tools to get you on the right track.
                        </div>
                        <ul _sp="p5197.c0.m645">
                            <li class="w1">
                                <a href="http://pages.ebay.com/help/account/gettingstarted.html" title="New to eBay">New to eBay</a></li><li class="w2"><a href="http://pages.ebay.com/help/buy/basics.html" title="BUY">How to buy</a>
                            </li>
                            <li class="w3"><a href="http://pages.ebay.com/sellerinformation/starting.html" title="SELL">How to sell</a></li>
                            <li class="w4"><a href="http://pages.ebay.com/sellerinformation/growing.html" title="Increase sales">Increase your sales</a></li>
                        </ul>
                    </div>
                </div>
                <div class="box_33l">
                    <div class="caption_box icon_title">
                        <span>Cẩm nang cho người mua</span>
                    </div>
                    <div class="subbox_33l">
                        <div>
                            Whether you're new to eBay or a veteran user, we have just the right tools to get you on the right track.
                        </div>
                        <ul _sp="p5197.c0.m645">
                            <li class="w1">
                                <a href="http://pages.ebay.com/help/account/gettingstarted.html" title="New to eBay">New to eBay</a></li><li class="w2"><a href="http://pages.ebay.com/help/buy/basics.html" title="BUY">How to buy</a>
                            </li>
                            <li class="w3"><a href="http://pages.ebay.com/sellerinformation/starting.html" title="SELL">How to sell</a></li>
                            <li class="w4"><a href="http://pages.ebay.com/sellerinformation/growing.html" title="Increase sales">Increase your sales</a></li>
                        </ul>
                    </div>
                </div>
                <div class="box_33l">
                    <div class="caption_box icon_title">
                        <span>Hướng dẫn cho người bán</span>
                    </div>
                    <div class="subbox_33l" style="margin-right:5px;">
                        <div>
                            Whether you're new to eBay or a veteran user, we have just the right tools to get you on the right track.
                        </div>
                        <ul _sp="p5197.c0.m645">
                            <li class="w1">
                                <a href="http://pages.ebay.com/help/account/gettingstarted.html" title="New to eBay">New to eBay</a></li><li class="w2"><a href="http://pages.ebay.com/help/buy/basics.html" title="BUY">How to buy</a>
                            </li>
                            <li class="w3"><a href="http://pages.ebay.com/sellerinformation/starting.html" title="SELL">How to sell</a></li>
                            <li class="w4"><a href="http://pages.ebay.com/sellerinformation/growing.html" title="Increase sales">Increase your sales</a></li>
                        </ul>
                    </div>
                </div>
            </div>
            <!--End box guide-->
        </div>
    </div>
    <div class="col_30r">
        <!--Most viewed box-->
        <?php echo $this->widget('shop','mostviewed',array()); ?>

        <!--Most buy box-->
        <?php echo $this->widget('shop','mostbuy',array()); ?>
    </div>
</div>
<div class="grid_12">
    <?php echo $this->widget('bizprofile','contact',array()); ?>
</div>
<script type="text/javascript">
$(document).ready(function() {
    $('#advertise')
    .before('<div id="ad_nav">')
    .cycle({
        fx:     'fade',
        timeout: 5000,
        delay:  -1000,
        pager:  '#ad_nav'
    });
});
</script>
